package com.wanxi.web.controller;

import com.wanxi.domain.code.ResultCode;
import com.wanxi.domain.vo.OrderQueryVO;
import com.wanxi.domain.vo.OrderVO;
import com.wanxi.domain.vo.Paging;
import com.wanxi.domain.vo.PlaceOrderVO;
import com.wanxi.orderApi.OrderFeign;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @Author LiuYuRong
 * @Date 2022/1/18 16:28
 * @Version 1.0
 * @Description
 */
@Api(tags = "企业订单接口")
public class EnterpriseOrderController {

    @Autowired
    private OrderFeign orderFeign;




    /**
     * 企业获得自己所有门店的所有订单
     *
     * @param eid 查询条件，必须传入企业id
     * @return 企业订单列表
     */
    @GetMapping("/order/orderApi/enterprise/getEnterpriseOrdersById/")
    List<OrderVO> getEnterpriseOrdersById(Long eid, Paging paging){
        return orderFeign.getEnterpriseOrdersById(eid,paging);
    }








}
